package com.example.housekeeping.pojo.entity;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 订单(Orders)实体类
 *
 * @author bob
 * @since 2023-03-20 18:14:24
 */
@Data
public class Orders implements Serializable {
    //private static final long serialVersionUID = -32477418375033041L;
    /**
     * 订单编号
     */
    private Long id;
    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 家政服务员编号
     */
    private Long workerId;
    /**
     * 订单状态码
     */
    private Integer state;
    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date appointmentTime;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date created;
    /**
     * 完成时间
     */
    private Date finish;

    private Long kindsId;

    private Double amount;


}

